package com.party.core.dao.read.crowdfund;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.crowdfund.ProjectComment;

import java.util.List;
import java.util.Map;

/**
 * 众筹评论数据读取
 * Created by wei.li
 *
 * @date 2017/2/16 0016
 * @time 17:04
 */
@Repository
public interface ProjectCommentReadDao extends BaseReadDao<ProjectComment> {
    /**
     * 找到发布者回复支持者的消息列表
     * @param refId 支持id
     * @return
     */
    List<Map<String, String>> findParentComments(@Param("refId") String refId);

    /**
     * 找到该条回复的回复列表
     * @param replyId 评论id
     * @return
     */
    List<Map<String, String>> findChildrenComments(@Param("replyId") String replyId);
}
